﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PageHeaderControl.ascx.cs" Inherits="SPCFMedicineInformer.UserControls.PageHeaderControl" %>


<div id="templatemo_header_wrapper">
	<div id="templatemo_header">
    	<div id="site_title"></div>
        <div id="templatemo_menu" class="ddsmoothmenu">
            <ul>
                <%if (FrontPageDoc != null){%>                              
                    <li><a href="<%=FrontPageDoc.Url %>" class="<%=IsCurrentNode(FrontPageDoc.Id,false,false) %>"><%=FrontPageDoc.MenuTitle %></a></li>  
                <%} %>
                <li><a href="/medicines" class="">Medicines</a>
                    <ul>
                        <asp:Repeater ID="rptMedCategory" runat="server">
                           
                                <ItemTemplate>  
                                    <li><a href="/medicines/<%# DataBinder.Eval(Container.DataItem,"Name").ToString().ToLower() %>"><%# DataBinder.Eval(Container.DataItem,"Name") %></a></li>
                                </ItemTemplate>
                        </asp:Repeater>                      
                        </li>
                    </ul>
                </li>  
                <li><a href="/aboutus/" class="">About Us</a></li>  
                <%if (ContactUsPageDoc != null){%>                              
                    <li><a href="<%=ContactUsPageDoc.Url %>" class="<%=IsCurrentNode(ContactUsPageDoc.Id,false,false) %>"><%=ContactUsPageDoc.MenuTitle %></a></li>
                <%} %>                
                <li><a href="/account/" class="<%=IsCurrentNode(ContactUsPageDoc.Id,false,false) %>">Account</a>
                    <ul>
                       <%if (IsAuthenticated){%>
                            <li><a href="/account/login/?signout">Logout</a></li>
                       <%} else{%>
                            <li><a href="/account/login/">Login</a></li>                      
                            <li><a href="/account/register/">Register</a></li>

                        <%} %>
                    </ul>
                </li>
            </ul>
            <br style="clear: left" />
        </div> <!-- end of templatemo_menu -->
    </div> <!-- END of templatemo_header -->
</div> <!-- END of templatemo_header_wrapper -->